import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const router = new VueRouter({
  routes:[
    {
      path: '/login',
      component: () => import('@/02.form表单组件.vue')
    },
    {
      path: '/',
      component: () => import('@/layout.vue'),
      children: [
        {
          path: '/tree',
          component: () => import('@/03.tree树形组件.vue'),
        },
        {
          path: 'table',
          component: () => import('@/00.table表格.vue'),
        }
      ]
    }
  ]
})

export default router